import 'package:json2dart_safe/json2dart.dart';

class ActivityUserModel {
  bool? isAttention;
  int? joinNum;
  String? logo;
  String? nickName;
  String? registerTime;
  int? userId;

  ActivityUserModel({
    this.isAttention,
    this.joinNum,
    this.logo,
    this.nickName,
    this.registerTime,
    this.userId,
  });

  Map<String, dynamic> toJson() {
    return Map<String, dynamic>()
      ..put('isAttention', this.isAttention)
      ..put('joinNum', this.joinNum)
      ..put('logo', this.logo)
      ..put('nickName', this.nickName)
      ..put('registerTime', this.registerTime)
      ..put('userId', this.userId);
  }

  ActivityUserModel.fromJson(Map<dynamic, dynamic> json) {
    this.isAttention = json.asBool('isAttention');
    this.joinNum = json.asInt('joinNum');
    this.logo = json.asString('logo');
    this.nickName = json.asString('nickName');
    this.registerTime = json.asString('registerTime');
    this.userId = json.asInt('userId');
  }

  static ActivityUserModel toBean(Map<String, dynamic> json) =>
      ActivityUserModel.fromJson(json);
}
